﻿<UserControl x:Class="DataForest.View.StartTabView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="591.896" d:DesignWidth="1020.57">
    <UserControl.Resources>
        <Style TargetType="Button" x:Key="ButtonLinkStyle">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="Button">
                        <TextBlock >
                            <ContentPresenter />
                        </TextBlock>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
            <Setter Property="Foreground" Value="Gainsboro" />
            <Setter Property="FontSize" Value="13" />
            <Setter Property="FontWeight" Value="Bold" />
            <Setter Property="Cursor" Value="Hand" />
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="true">
                    <Setter Property="Foreground" Value="GhostWhite" />
                </Trigger>
            </Style.Triggers>
        </Style>
        
        <Style TargetType="StackPanel" x:Key="ManualPanel">
            <Setter Property="TextBlock.Foreground" Value="Gainsboro" />
            <Setter Property="Cursor" Value="Hand" />
            <Style.Triggers>
                <Trigger Property="IsMouseOver" Value="True">
                    <Setter Property="TextBlock.Foreground" Value="GhostWhite" />
                </Trigger>
            </Style.Triggers>
        </Style>
    </UserControl.Resources>
    <Border BorderThickness="1" BorderBrush="#FF444343" CornerRadius="2">
    <Grid  VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Background="#FF444343">
        <Grid.RowDefinitions>
            <RowDefinition Height="180*"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="300*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="250"/>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Button Margin="10,0,0,0" Style="{StaticResource ButtonLinkStyle}" Grid.Row="1" Content="Neue Tabelle erstellen" HorizontalAlignment="Left" VerticalAlignment="Center" Command="{Binding DataContext.NewTableCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" />
        <Button Margin="10,0,0,0" Style="{StaticResource ButtonLinkStyle}" Grid.Row="2" Content="Tabelle Öffnen" HorizontalAlignment="Left" VerticalAlignment="Center" Command="{Binding DataContext.OpenCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" />
        <!--<Button Margin="10,0,0,0" Style="{StaticResource ButtonLinkStyle}" Grid.Row="3" Content="Workgroup laden" HorizontalAlignment="Left" VerticalAlignment="Center" Command="{Binding DataContext.OpenCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" />
        <Button Margin="10,0,0,0" Style="{StaticResource ButtonLinkStyle}" Grid.Row="4" Content="Tabelle aus Excel-Datei Importieren" HorizontalAlignment="Left" VerticalAlignment="Center" Command="{Binding DataContext.OpenCommand, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}}" />-->
        <Grid Grid.Column="1" Grid.RowSpan="6" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Background="LightGray">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="250" />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <StackPanel Grid.Column="0" VerticalAlignment="Top" HorizontalAlignment="Center">
                    <StackPanel Height="100" Width="200" Background="#FF444343" Margin="10" Style="{StaticResource ManualPanel}">
                        <StackPanel.InputBindings>
                            <MouseBinding Command="{Binding ShowIntroCommand}" MouseAction="LeftClick" />
                        </StackPanel.InputBindings>
                        <TextBlock Text="Erste Schritte" Foreground="GhostWhite"  HorizontalAlignment="Center" FontWeight="Bold" TextAlignment="Center" TextWrapping="Wrap" Margin="10,10,10,0" />
                        <TextBlock Text="Grundlegende Informationen zum Funktionsumfang der Software" Foreground="GhostWhite" Margin="10,5,10,10" TextWrapping="Wrap" />
                    </StackPanel>
                    <StackPanel Height="100" Width="200" Background="#FF444343" Margin="10" Style="{StaticResource ManualPanel}" >
                        <StackPanel.InputBindings>
                            <MouseBinding Command="{Binding ShowTableCommand}" MouseAction="LeftClick"/>
                        </StackPanel.InputBindings>
                        <TextBlock Text="Tabellen bearbeiten" Foreground="GhostWhite" HorizontalAlignment="Center" FontWeight="Bold" TextAlignment="Center" TextWrapping="Wrap" Margin="10,10,10,0" />
                        <TextBlock Text="Informationen zum Bearbeiten und Erstellen von Tabellen" Foreground="GhostWhite" Margin="10,5,10,10" TextWrapping="Wrap" />
                    </StackPanel>
                    <StackPanel Height="100" Width="200" Background="#FF444343" Margin="10" Style="{StaticResource ManualPanel}">
                        <StackPanel.InputBindings>
                            <MouseBinding Command="{Binding ShowTreeCommand}" MouseAction="LeftClick" />
                        </StackPanel.InputBindings>
                        <TextBlock Text="Bäume" Foreground="GhostWhite" HorizontalAlignment="Center" TextAlignment="Center" FontWeight="Bold" TextWrapping="Wrap" Margin="10,10,10,0" />
                        <TextBlock Text="Grundlegende Informationen über das erstellen automatischer und interaktiver Bäume" Foreground="GhostWhite" Margin="10,5,10,10" TextWrapping="Wrap" />
                    </StackPanel>
                    <StackPanel Height="100" Width="200" Background="#FF444343" Margin="10" Style="{StaticResource ManualPanel}">
                        <StackPanel.InputBindings>
                            <MouseBinding Command="{Binding ShowRulesCommand}" MouseAction="LeftClick" />
                        </StackPanel.InputBindings>
                        <TextBlock Text="Regeln" Foreground="GhostWhite" HorizontalAlignment="Center" TextAlignment="Center" FontWeight="Bold"  TextWrapping="Wrap" Margin="10,10,10,0" />
                        <TextBlock Text="Informationen rund um die Regeldarstellung" Foreground="GhostWhite" Margin="10,5,10,10" TextWrapping="Wrap" />
                    </StackPanel>
                </StackPanel>
            <Image Grid.Column="1" Source="Icons/dataforest.png" Stretch="None" VerticalAlignment="Center" HorizontalAlignment="Center"/>
        </Grid>
    </Grid>
    </Border>
</UserControl>
